home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / wais / waisgate / sigindex.h < prev    next >
C/C++ Source or Header  |  1995-05-09  |  1KB  |  66 lines

  1. /* WIDE AREA INFORMATION SERVER SOFTWARE:
  2.    No guarantees or restrictions.  See the readme file for the full standard
  3.    disclaimer.
  4.  
  5.    Brewster@think.com
  6. */
  7.  
  8. /* Include file for the irhash.c file.
  9.    Implements the building functions in irext.h */
  10.  
  11. #ifndef SIGINDEX_H
  12. #define SIGINDEX_H
  13.  
  14. #include "cdialect.h"
  15.  
  16. #ifdef __cplusplus
  17. /* declare these as C style functions */
  18. extern "C"
  19.     {
  20. #endif /* def __cplusplus */
  21.  
  22.  
  23. /* ============================
  24.  * ===  Building Functions  ===
  25.  * ============================*/
  26.  
  27. long sig_init_add_word _AP ((database *db, long parameter1, long parameter2));
  28.  
  29. long sig_add_word _AP((
  30.                char *word,
  31.                long char_pos,
  32.                long line_pos,
  33.                long weight,
  34.                long doc_id,
  35.                time_t date,
  36.                long pair_word));
  37.  
  38. long sig_finished_add_word _AP((database *db));
  39.  
  40.  
  41. #ifdef __cplusplus
  42.     }
  43. #endif /* def __cplusplus */
  44.  
  45. /*
  46.  * define constants to interface sig functions
  47.  */
  48.  
  49. /* update types */
  50. #define ONLINE_UPDATE   1
  51. #define BATCH_UPDATE    2
  52.  
  53. /* operation mode */
  54. #define ADD_UPDATE 1
  55. #define MOD_UPDATE 2
  56. #define DEL_UPDATE 3
  57.  
  58.  
  59. #endif /* nded SIGINDEX_H */
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.